<template>
  <div></div>
</template>

<script setup>
import { useRoute, useRouter } from 'vue-router'

const route = useRoute();
const router = useRouter();
const { params, query } = route
const { path } = params

router.replace({ path: '/'+ path, query })

/*router.replace(router.currentRoute.value.fullPath)*/
/*router.beforeEach(to => {
  if(!hasNecessaryRoute(to)){
    router.addRoute(generateRoute(to))
    return to.fullPath
  }
})*/


</script>
